home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BCI NET
/
BCI NET Dec 94.iso
/
archives
/
applications
/
wp
/
xdmd1.lha
/
Diary.xdme
< prev
next >
Wrap
Text File
|
1994-10-24
|
1KB
|
50 lines
/* Diary.xdme */
/* An ARexx script for maintaining a diary with XDME */
if ~show("L","rexxreqtools.library") then
if ~addlib("rexxreqtools.library", 0, -30) then exit
/* Change these variables to suit your own needs */
path = "Work:Texts/Diary/"
name = "Fergus Duniho"
today = date(s)
tagstr = "rt_reqpos=reqpos_centerscr rtfi_flags=freqf_patgad"
fullname = rtfilerequest(path,today,"Select Diary Entry ...",,tagstr)
if abbrev(fullname,path) = 0 then exit
entry = delstr(fullname,1,length(path))
password = rtgetstring(,,"Please Enter Password")
newwindow
if exists(fullname) then do
xcom = 'execute (copy' fullname 't:temp)'
xcom
xcom = 'execute (xpack t:temp password "' || password || '")'
xcom
newfile "t:temp"
chfilename fullname
call delete("t:temp")
if entry < today then do
viewmode on
end
else do
(bottom downadd return)
C = "printf (((((( %s ))))))" time(c)
C
(justify center downadd downadd col 9)
end
end
else do
C1 = "insert (The Diary of" name "for" date(w) date(n) ")"
C2 = "printf (((((( %s ))))))" time(c)
C1
(justify center downadd downadd)
C2
(justify center downadd downadd col 9)
chfilename fullname
end
C = "menuadd Window (" || entry || ") (select (window=" || entry || "))"
C
C = "settvar method IDEA settvar password" password
C